package com.itkaien.saaexample;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class TestYml {
    @Value("sk-7465bfe24bcf4f5a8db8b1ae9a9078df")
    private String apiKey;

    public String getApiKey() {
        return apiKey;
    }

    @PostConstruct
    public void init() {
        System.out.println("apiKey: " + apiKey);
    }
}
